/*
  Copyright 2005 - Daniel Lowd

  This file is part of the nbe code available at http://www.cs.washington.edu/ai/nbe/. There are some modifications to 
  integrate the original code of Daniel Lowd into the eapmlib library. The NBE method is explained in:

  Daniel Lowd and Pedro Domingos. 'Naive Bayes Models for Probability Estimation'. 
  Proceedings of the Twenty-Second International Conference on Machine Learning (ICML), 2005. 
  Bonn, Germany: ACM Press.
*/
#include "Distribution.h"
#include <iostream>

ostream& operator<<(ostream& out, const NBE::Distribution& d)
{
    out << '(';
    for (int i = 0; i < d.dim(); i++) {
        if (i > 0) {
            out << ' ';
        }
        out << d[i];
    }
    out << ')';

    return out;
}
